package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 司机扫码接单
 *
 * @author yangyang
 * @time 2020-11-20 17:15
 */
public class TakeOrderApi implements IRequestApi, IRequestType {

    private String orderNumber;
    private String confirmBank = "1";

    @Override
    public String getApi() {
        return "api/waybill";
    }

    public TakeOrderApi setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
        return this;
    }

    public TakeOrderApi setConfirmBank(String confirmBank) {
        this.confirmBank = confirmBank;
        return this;
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }
}
